/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

/** Kingipüüdja
 * @author Sirli, Raido, Argo
 */

public class Joonistus extends MIDlet{
    public Display  display;     // The display
    Louend louend;
    public TheEnd theend;
    public Intro intro;

    public Joonistus(){
        display = Display.getDisplay(this);
        louend  = new Louend(this);
        theend = new TheEnd(this);
        intro = new Intro(this);
    }

    protected void startApp() throws MIDletStateChangeException{
        Display.getDisplay(this).setCurrent(intro);
        //display.setCurrent( intro );
    }
    protected void pauseApp(){}
    //protected void destroyApp(boolean kohustus) throws MIDletStateChangeException{}
    protected void destroyApp( boolean unconditional ){}

    public void exitMIDlet(){
        destroyApp(true);
        notifyDestroyed();
    }
}